package com.qf.day10_4;

import java.util.Scanner;

/**
 * @author wgy
 * @version V1.0
 * @Project day10
 * @Package com.qf.day10_4
 * @Description: ${TODO}
 * @Date 2021/5/31 16:39
 */
public class TestBank {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入卡号");
        String cardNo=input.next();
        System.out.println("请输入密码");
        String password=input.next();
        //创建一个银行
        Bank zhongguobank=new Bank();
        //登录
        boolean b=zhongguobank.login(cardNo, password);
        if(b){
            System.out.println("登录成功");
            zhongguobank.showMenu();
        }else{
            System.out.println("用户名或密码错误");
        }


    }
}
